﻿using System.Windows;
using System.Windows.Controls;
using IMClient.ViewModels;

namespace IMClient.View;

public partial class GroupCreatorManagerView : UserControl
{
    public GroupCreatorManagerView()
    {
        InitializeComponent();
    }

    private async void GroupName_LostFocus(object sender, RoutedEventArgs e)
    {
        if (DataContext is GroupCreatorManagerViewModel viewModel)
        {
            await viewModel.UpdateGroupNameAsync();
        }
    }
}